<template>
  <section class="upload-info-section">
    <section class="common-text-block-section">
      <div class="title-section">
        <div class="title">客户基础信息</div>
      </div>
      <div class="info-wrap">
        <div class="text-section">
           <el-row :gutter="20">
            <el-col :span="3"><div class="info-item iconfont icon-name"> 客户名称:</div></el-col>
            <el-col :span="10"><span class="info-item" >{{ accountBillData.companyName?accountBillData.compamyName:accountBillData.cName }}</span></el-col>
          </el-row>
          <el-row :gutter="20">
            <el-col :span="3"><div class="info-item iconfont icon-phone"> 客户电话:</div></el-col>
            <el-col :span="10"><span class="info-item" >{{ accountBillData.mobile }}</span></el-col>
          </el-row>
          <el-row :gutter="20">
            <el-col :span="3"><div class="info-item iconfont icon-wechart"> 客户微信:</div></el-col>
            <el-col :span="10"><span class="info-item" >{{ accountBillData.weChartAccount }}</span></el-col>
          </el-row>
          <el-row :gutter="20">
            <el-col :span="3"><div class="info-item iconfont icon-man"> 会计负责人:</div></el-col>
            <el-col :span="10"><span class="info-item" >{{ accountBillData.accountingManager }}</span></el-col>
          </el-row>
        </div>
        <el-tag type="danger">强制做账</el-tag>
      </div>
    </section>
  </section>
</template>

<script>
/**
 * @file 上传模块 / 客户信息纯展示模块
 */
export default {
  props: {
    companyName: {
      type: String,
    },
  },
  data() {
    return {
      accountBillData: {},
    };
  },
  mounted() {
    const str = localStorage.getItem("currentAccountBill");
    const data = JSON.parse(str);
    this.accountBillData = data;
  },
};
</script>
<style lang="less" scoped>
@import "../../../assets/var.less";
.upload-info-section {
  display: flex;
  .common-text-block-section {
    flex: 1;
    margin-bottom: 0;
    .item {
      width: 49%;
    }
  }
  .common-text-block-section ~ .common-text-block-section {
    margin-left: 10px;
  }
  .iconfont::before {
    color: @color-grey-low;
  }
  .upload-info-section {
    display: flex;
    .left,
    .right {
      flex: 1;
    }
    .left span {
      font-size: 14px;
      &.bank {
        color: @color-error;
      }
      &.uploaded {
        color: @color-green;
      }
    }
  }
}
.text-section {
    flex: 1;
}
.info-wrap  {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.info-item{
  font-family: PingFang SC, Helvetica Neue, Helvetica, sans-serif;
  font-size: 16px;
}
</style>